01Exercise 1 — Querying the DNS database
In the following screenshot, the user has performed several DNS queries with the nslookup program.
C:\> nslookup www.mit.edu
Server: dns-prime.poly.edu
Address: 128.238.29.22
Name: www.mit.edu
Address: 18.7.22.83
C:\> nslookup -type=NS mit.edu
Server: dns-prime.poly.edu
Address: 128.238.29.22
Non-authoritative answer:
mit.edu nameserver = bitsy.mit.edu
mit.edu nameserver = strawb.mit.edu
mit.edu nameserver = w20ns.mit.edu
bitsy.mit.edu internet address = 18.72.0.3
strawb.mit.edu internet address = 18.71.0.151
w20ns.mit.edu internet address = 18.70.0.160
C:\> nslookup www.aiit.or.kr bitsy.mit.edu
Server: BITSY.MIT.EDU
Address: 18.72.0.3
Non-authoritative answer:
Name: www.aiit.or.kr
Address: 218.36.94.200
First query
- In which domain is the user's machine located, and what is its default name server?
- What other information does the user get from the first query?
- Can we tell whether the answer was obtained recursively or iteratively?
Second query
- Which name server responds?
- What is the user asking for with the option
-type=NS? - What is the answer?
- What does "Non-authoritative answer" mean?
Third query
- What is the second argument used for?
- Is it normal that the answer is non-authoritative?
02Exercise 2 — Discovering the DNS protocol
The following trace contains traffic captured between a browser and the website http://www.ouifm.fr/.
Traffic capture
| No. | Time | Source | Destination | Protocol | Info |
|---|---|---|---|---|---|
| 1 | 0.000000 | 192.168.2.87 | 89.2.0.1 | DNS | Standard query A www.ouifm.fr |
| 2 | 0.009827 | 89.2.0.1 | 192.168.2.87 | DNS | Standard query response CNAME www.ouirock.com A 217.19.61.13 |
| 6 | 0.028282 | 192.168.2.87 | 217.19.61.13 | HTTP | GET / HTTP/1.1 |
| 8 | 0.055848 | 217.19.61.13 | 192.168.2.87 | HTTP | HTTP/1.1 200 OK |
| 25 | 0.090735 | 192.168.2.87 | 217.19.61.13 | HTTP | GET /img/elements/ico.ico HTTP/1.1 |
- Justify the first two frames.
- Summarise the exchange with a diagram showing the IP addresses of the machines and the protocols used.
- About frame 25: why is there no new DNS query before retrieving
http://www.ouifm.fr/img/elements/ico.ico?
Detailed analysis of the first two frames
Frame 1 (72 bytes on wire, 72 bytes captured)
Ethernet II, Src: 00:15:c5:69:de:36, Dst: 00:30:bd:24:1d:a5
Internet Protocol, Src: 192.168.2.87, Dst: 89.2.0.1
User Datagram Protocol, Src Port: 4029, Dst Port: 53
Domain Name System (query)
[Response In: 2]
Transaction ID: 0xbe66
Flags: 0x0100 (Standard query)
Questions: 1
Answer RRs: 0
Authority RRs: 0
Additional RRs: 0
Queries
www.ouifm.fr: type A, class IN
Frame 2 (117 bytes on wire, 117 bytes captured)
Ethernet II, Src: 00:30:bd:24:1d:a5, Dst: 00:15:c5:b9:de:36
Internet Protocol, Src: 89.2.0.1, Dst: 192.168.2.87
User Datagram Protocol, Src Port: 53, Dst Port: 4029
Domain Name System (response)
[Request In: 1]
[Time: 0.009827000 seconds]
Transaction ID: 0xbe66
Flags: 0x8180 (Standard query response, No error)
Questions: 1
Answer RRs: 2
Authority RRs: 0
Additional RRs: 0
Queries
www.ouifm.fr: type A, class IN
Answers
www.ouifm.fr: type CNAME, class IN, cname www.ouirock.com
www.ouirock.com: type A, class IN, addr 217.19.61.13
- How many questions and how many answers does the DNS query contain? What is the type of the query?
- Which transport protocol is used, and what is the server's listening port?
- How many questions and how many answers does the DNS response contain? What is the content of the response?